home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
misc
/
zkick301.lzh
/
zkick.h
< prev
next >
Wrap
Text File
|
1991-07-09
|
850b
|
9 lines
#define EQUAL(ASTART,AEND,BSTART,BEND) ((ASTART)==(BSTART) && (AEND)==(BEND))
#define BELOW(ASTART,AEND,BSTART,BEND) ((ASTART)<(BSTART) && (AEND)<(BSTART))
#define ABOVE(ASTART,AEND,BSTART,BEND) ((BSTART)<(ASTART) && (BEND)<(ASTART))
#define SUBSET(ASTART,AEND,BSTART,BEND) ((ASTART)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define SUPERSET(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define INTERLOW(ASTART,AEND,BSTART,BEND) ((ASTART)<=(BSTART) && (AEND)>=(BSTART) && (AEND)<=(BEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define INTERHI(ASTART,AEND,BSTART,BEND) ((BSTART)<=(ASTART) && (BEND)>=(ASTART) && (BEND)<=(AEND) && !EQUAL(ASTART,AEND,BSTART,BEND))
#define INTERSECT(ASTART,AEND,BSTART,BEND) (INTERHI(ASTART,AEND,BSTART,BEND) || INTERLOW(ASTART,AEND,BSTART,BEND))